cmake_minimum_required(VERSION 3.15) 
project(api_demo)
set(API_HEAD_FILES_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include")
set(API_SOURCE_FILES_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src")
message("test: API_HEAD_FILES_DIR=${API_HEAD_FILES_DIR}")
message("test: API_SOURCE_FILES_DIR=${API_SOURCE_FILES_DIR}")
aux_source_directory(${API_SOURCE_FILES_DIR} API_SOURCE_FILES)
message("test: API_SOURCE_FILES=${API_SOURCE_FILES}")
# include_directories(${API_HEAD_FILES_DIR})
add_library(${PROJECT_NAME} SHARED ${API_SOURCE_FILES})
target_include_directories(${PROJECT_NAME} PUBLIC ${API_HEAD_FILES_DIR})